package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 *医院信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class SystemRegionInsertRequestDTO extends BaseRequestDTO {

    /**
     * 名称
     *
     * @mbggenerated
     */
    @ApiParam(value = "名称",required = true)
    @NotNull
    private String name;

    /**
     * 代码
     *
     * @mbggenerated
     */
    @ApiParam(value = "代码",required = true)
    @NotNull
    private String code;

    /**
     * 父ID（101=重庆市）
     *
     * @mbggenerated
     */
    @ApiParam( hidden = true ,value = "父级ID")
    @NotNull
    private Long parentId = 101L;


    public void valid(){
        super.validate( this, new Class[0] );

    }
    public boolean isValidGid() {

        return false;
    }

}
